<?php

header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

$con = mysql_connect("localhost","root","9162land");
	if (!$con)
	  {
	  die('Could not connect: ' . mysql_error());
	  }
  
	mysql_select_db("cubeMass", $con);

	$nowTime = date("Y-m-d H:i:s");
	
	$sql = "INSERT INTO model (stringData) 
						VALUES ('$_POST[stringData]'
								)";
	mysql_query($sql,$con);
	$id = mysql_query("SELECT LAST_INSERT_ID()");
	$id = mysql_query("SELECT LAST_INSERT_ID()");
	while($row_id = mysql_fetch_array($id)){
		$model_id=$row_id[0];
		}
	echo $model_id;
	
mysql_close($con);

?>